GtkSidebar: Fix a property type
authorMatthias Clasen <mclasen@redhat.com>
Fri, 3 Oct 2014 01:59:55 +0000 (21:59 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 3 Oct 2014 02:00:40 +0000 (22:00 -0400)
The GtkSidebar:stack was meant to be an object property
of type GTK_TYPE_STACK. Make it so.

gtk/gtksidebar.c

index bac651aeab0e2511d6edadd618cc61a2da486d8b..707694a2e086c5f5c585ead50e180cd730fe2ec2 100644 (file)
@@ -433,9 +433,10 @@ gtk_sidebar_class_init (GtkSidebarClass *klass)
   object_class->get_property = gtk_sidebar_get_property;
 
   obj_properties[PROP_STACK] =
-      g_param_spec_pointer ("stack", P_("Stack"),
-                            P_("Associated stack for this GtkSidebar"),
-                            G_PARAM_READWRITE);
+      g_param_spec_object (I_("stack"), P_("Stack"),
+                           P_("Associated stack for this GtkSidebar"),
+                           GTK_TYPE_STACK,
+                           G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS|G_PARAM_EXPLICIT_NOTIFY);
 
   g_object_class_install_properties (object_class, N_PROPERTIES, obj_properties);
 }